//extension js that binding to forground interface.
document.getElementById("clickme").addEventListener("click",()=>{
    chrome.tabs.query({active:true,currentWindow:true},(tabs)=>{
        chrome.tabs.sendMessage(tabs[0].id,{action:"changeColor"});
    })
})

document.getElementById("button1").addEventListener("click",()=>{
    chrome.tabs.query({active:true,currentWindow:true},(tabs)=>{
        chrome.tabs.sendMessage(tabs[0].id,{action:"clickbutton"});
    })
})

